package org.hr.xtime.absence

import org.hr.xtime.user.Employee

class Day {
	
	Date date
	DayType type
	Employee employee
	String status
	BigDecimal hours
	
	static constraints = {
		date (unique:'employee')
	}
	
	String toString(){
		return date?.format("dd-MM-yyyy")+ " " +type
	}
}
